//   src/store/modules/header.js
const state = {
  flag: false
}

const mutations = {
  SET_FLAG(state, flags) {
    state.flag = flags
  }
}
const actions = {
  setFlag({commit}, flags) {
    commit('SET_FLAG', flags)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
